/*
Borealis Library
A library of commonly used hydrological modeling building blocks

Copyright (C) 2008  Chris Marsh

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
#include "include/ModuleFactory.hpp"

namespace Aurora
{
	AuroraTypes::ModuleBase* ModuleFactory::get(std::string type)
	{

		if( type == "am_RasterToFile")
			return new am_RasterToFile(type);
		else if( type == "am_TempInterp")
			return new am_TempInterp(type);
		else if( type == "am_RHInterp")
			return new am_RHInterp(type);
		else if( type == "am_QsiCBW")
			return new am_QsiCBW(type);
		else if( type == "am_QsiAnnandale")
			return new am_QsiAnnandale(type);
		else if( type == "am_QsiListon")
			return new am_QsiListon(type);
		else if( type == "am_InterpVar")
			return new am_InterpVar(type);
		else if( type == "am_Extract")
			return new am_Extract(type);
		else
			return NULL;
	}
}